﻿<phone:PhoneApplicationPage 
    x:Class="MyDeeWeibo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:weiboSDK="clr-namespace:WeiboSdk;assembly=WeiboSdk"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded"
    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    >
    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Style="{StaticResource BackgroundStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <controls:Panorama x:Name="firstPage" Margin="0,0,0,12" Grid.RowSpan="2" Title="{StaticResource AppName}" Foreground="{StaticResource PhoneBackgroundBrush}">
            <controls:PanoramaItem Header="开始">
                <!--TitlePanel contains the name of the application and page title
                <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
                    <TextBlock x:Name="ApplicationTitle" Text="{StaticResource AppName}" Style="{StaticResource PhoneTextNormalStyle}" FontFamily="Segoe WP SemiLight" Foreground="{StaticResource PhoneBackgroundBrush}"/>
                    <TextBlock x:Name="PageTitle" Text="MyDeeWeibo" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="{StaticResource PhoneBackgroundBrush}"/>
                </StackPanel>-->

                <!--ContentPanel - place additional content here-->
                <Grid x:Name="Login" Margin="12,0,12,12" Grid.Row="1" Height="442">
                    <Button x:Name="homeButton" Content="主页" VerticalAlignment="Top" Visibility="Collapsed" Click="homeButton_Click" Foreground="{StaticResource PhoneBackgroundBrush}" BorderBrush="{StaticResource PhoneBackgroundBrush}"/>
                    <Button x:Name="loginButton" Content="登录/授权" Margin="130,217,66,138" d:LayoutOverrides="VerticalAlignment, Height" Click="loginButton_Click" Foreground="{StaticResource PhoneBackgroundBrush}" BorderBrush="{StaticResource PhoneBackgroundBrush}" Width="200" />
                    <TextBox Height="80" HorizontalAlignment="Left" Margin="85,36,0,0" Name="username" Text="{Binding Source={StaticResource AppSettings}, Path=colorSaved, Mode=TwoWay}" VerticalAlignment="Top" Width="289" FontSize="21.333" BorderBrush="{StaticResource PhoneBackgroundBrush}" />
                    <TextBox Height="80" HorizontalAlignment="Left" Margin="85,133,0,0" Name="password" Text="{Binding Source={StaticResource AppSettings}, Path=passwordSaved, Mode=TwoWay}" VerticalAlignment="Top" Width="289" FontSize="21.333" BorderBrush="{StaticResource PhoneBackgroundBrush}"  />
                    <Button Content="" Height="80" HorizontalAlignment="Left" Margin="58,348,0,0" Name="colorChange" VerticalAlignment="Top" Width="152" Foreground="Black" BorderBrush="Black" Visibility="Collapsed" />
                </Grid>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="关于">
                <!--TitlePanel contains the name of the application and page title
                <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
                    <TextBlock x:Name="ApplicationTitle" Text="{StaticResource AppName}" Style="{StaticResource PhoneTextNormalStyle}" FontFamily="Segoe WP SemiLight" Foreground="{StaticResource PhoneBackgroundBrush}"/>
                    <TextBlock x:Name="PageTitle" Text="MyDeeWeibo" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="{StaticResource PhoneBackgroundBrush}"/>
                </StackPanel>-->

                <!--ContentPanel - place additional content here-->
                <Grid x:Name="About" Margin="12,0,12,12" Grid.Row="1" Height="442">
                	<StackPanel Margin="0,70,8,8" Grid.ColumnSpan="2" Grid.RowSpan="2">
                		<TextBlock TextWrapping="Wrap" Text="Dee Weibo" Height="48" FontSize="32" TextAlignment="Center" FontWeight="Bold"/>
                		<TextBlock TextWrapping="Wrap" Height="13" FontSize="24" TextAlignment="Center"/>
                		<TextBlock TextWrapping="Wrap" Text="这是一个Windows Phone平台的新浪微博客户端" Height="63" Margin="50,0" FontSize="21.333"/>
                		<TextBlock TextWrapping="Wrap" Height="27"/>
                		<TextBlock TextWrapping="Wrap" Text="作者：Shawn Jiang" FontSize="21.333" TextAlignment="Center"/>
                		<TextBlock TextWrapping="Wrap" Text="邮箱:oliverpp@126.cm" TextAlignment="Center" FontSize="21.333"/>
                		<TextBlock TextWrapping="Wrap"/>
                		<TextBlock TextWrapping="Wrap" Text="有任何建议或者问题，请给我邮件~" FontSize="21.333" TextAlignment="Center"/>
                	</StackPanel>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>